const { ccclass, property } = cc._decorator;

import Utils = require("../../utils/Utils");
import RepairBaseView from "./RepairBaseView";
@ccclass
export default class RepairPersonFourView extends RepairBaseView {

    _Step = ["niezi","shou","shabu","yaogao","mianqiu"];//关卡标识 用于icon名字 拼接
    _StepList = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5];//16个步骤
    _StepNum = 5;//5关
    _guidePos = [
        cc.v2(160,-411),cc.v2(260,-174),cc.v2(-274,-300),cc.v2(160,-411),cc.v2(260,-174),
        cc.v2(-274,-300),cc.v2(160,-411),cc.v2(260,-174),cc.v2(-274,-300),cc.v2(160,-411),
        cc.v2(260,-174),cc.v2(-274,-300),cc.v2(160,-411),cc.v2(260,-174),cc.v2(-274,-300)
    ];

    start(){
        super.start();
        this.aniSpine.setCompleteListener(() => {
            this.showGuide();
        });
        this.aniSpine.setAnimation(0, "000", false);
    };

    playSound(){
        let str = this._point >= 10 ? "0" : "00";
        let name = str + this._point
        Utils.audioManager.playSound("huazhuang/mini/person/step4/" + name);
    };
    makeDot(){
    };
}
